using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;

namespace Cpsc481Phone.Gui.Menus
{
    public partial class MainMenu : UserControl
    {
        public MainMenu()
        {
            InitializeComponent();
            menuList.Items.Add("1. Call History");
            menuList.Items.Add("2. PhoneBook");
            menuList.Items.Add("3. Messaging");
            menuList.Items.Add("4. Calendar");
            menuList.Items.Add("5. Calculator");
            menuList.Items.Add("6. Games");
            menuList.Items.Add("7. Tools");
            menuList.Items.Add("8. Other");
            menuList.SelectedIndex = 0;
        }
        public void scroll_down()
        {
            if (menuList.SelectedIndex != 7)
            {
                menuList.SelectedIndex = menuList.SelectedIndex + 1;
            }
        }
        public void scroll_up()
        {
            if (menuList.SelectedIndex != 0)
            {
                menuList.SelectedIndex = menuList.SelectedIndex - 1;
            }
        }
        public int getListIndex()
        {
            return menuList.SelectedIndex;
        }

        public void reset_currentIndex()
        {
            menuList.SelectedIndex = 0;
        }
       
    }
}
